|
Download
FAQ History |
|
API
Search Feedback |
About This Tutorial
This tutorial is a beginner's guide to developing enterprise applications using the Java
2 Platform, Enterprise Edition (J2EE
) version 1.4. Here we cover all the things you need to know to make the best use of this tutorial.
Who Should Use This Tutorial
This tutorial is intended for programmers interested in developing and deploying J2EE applications on the J2EE 1.4 Application Server Beta 2.
How to Read This Tutorial
This tutorial is organized into six parts:
- Introduction
The first three chapters introduce basic J2EE concepts and technologies and we suggest that you read these first in their entirety.
- Java XML technology
These chapters cover the technologies for developing applications that process XML documents and provide Web services:
- Web technology
These chapters cover the component technologies used in developing the presentation layer of a J2EE application or a standalone Web application.
- Enterprise JavaBeans technology
These chapters cover the component technologies used in developing the business logic of a J2EE application.
Note: With the exception of timer beans, Enterprise JavaBeans technology will be covered in the next release of the tutorial.
Note: Transactions and Resources will be covered in the next release of the tutorial.
About the Examples
Prerequisites for the Examples
To understand the examples you will need a good knowledge of the Java programming language, SQL, and relational database concepts. The topics listed in Table P-1 The Java
Tutorial are particularly relevant:
Building and Running the Examples
This section tells you everything you need to know to obtain, build, and run the examples.
Required SoftwareIf you are viewing this online, you need to download The J2EE
1.4 Tutorial from:
Once you have installed the tutorial bundle, the example source code is in the
<INSTALL>/j2eetutorial14/examples/directory, with subdirectories for each of the technologies discussed in the tutorial.To build, deploy, and run the examples you need a copy of the J2EE 1.4 Application Server Beta 2 and the Java 2 Platform, Standard Edition (J2SE
) SDK 1.4.1. You download this version of the J2EE 1.4 Application Server from:
the J2SE 1.4.1 SDK from
Building the ExamplesMost of the tutorial examples are distributed with a configuration file for
asant, a portable build tool contained in the J2EE 1.4 Application Server, that is an extension of the Ant tool developed by the Apache Software Foundation (http://www.apache.org).asantcontains additional tasks that interact with the J2EE 1.4 Application Server adminstration utilityasadmin. Directions for building the examples are provided in each chapter.In order to run the
asantscripts, you must configure your environment and properties files as follows:
- Add
<JAVA_HOME>/binto the front of your path.- Add
<J2EE_HOME>/binand<J2EE_HOME>/share/binto the front of your path so that J2EE 1.4 Application Server scripts (asadmin,asant,deploytool, andwscompile) overrides other installations.- Set the
j2ee.homeproperty in the file<INSTALL>/j2eetutorial14/examples/common/build.propertiesto the location of your J2EE Application Server installation. The build process uses thej2ee.homeproperty to include the J2EE library archive,<J2EE_HOME>/lib/j2ee.jar, in the classpath. If you wish to use an IDE or thejavaccompiler to build J2EE applications, you must add this JAR to your classpath.- Set the
admin.userandadmin.passwordproperties in the file<INSTALL>/j2eetutorial14/examples/common/build.propertiesto the values you specified when you installed the J2EE 1.4 Application Server. The build scripts use these values when you invoke an administration task such as creating a database pool. The default value foradmin.useris set to the installer's default value, which isadmin.Tutorial Example Directory StructureTo facilitate iterative development and keep application source separate from compiled files, the source code for the tutorial examples is stored in the following structure under each application directory:
The
asantbuild files (build.xml) distributed with the examples contain targets to create abuildsubdirectory and copy and compile files into that directory and perform administrative functions on the application server. Build properties and targets common to a particular technology are specified in the files<INSTALL>/j2eetutorial14/examples/technology/common/build.propertiesand<INSTALL>/j2eetutorial14/examples/technology/common/targets.xml.How to Print This Tutorial
To print this tutorial, follow these steps:
- Ensure that Adobe Acrobat Reader is installed on your system.
- Open the PDF version of this book.
- Click the printer icon in Adobe Acrobat Reader.
Typographical Conventions
Table P-2 lists the typographical conventions used in this tutorial.
Menu selections indicated with the right-arrow character
, for example, First
Second, should be interpreted as: select the First menu, then choose Second from the First submenu.
|
Download
FAQ History |
|
API
Search Feedback |
All of the material in The J2EE 1.4 Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.